package com.huawei.hwclouds.lubanops.demo.common.exception.common;

import com.huawei.hwclouds.lubanops.demo.common.exception.ErrorCodeException;
import com.huawei.hwclouds.lubanops.demo.common.exception.ServiceCode;

/**
 * 通用的错误服务名字，比如参数错误等
 *
 * @author y00438022
 * @since 2020/12/30
 **/
public abstract class CommonException extends ErrorCodeException {
    public CommonException(CommonErrorCode code, String message) {
        super(ServiceCode.COMMON.getCode(), code.getCode(), code.getMessageFormat(), message);
    }

    public CommonException(CommonErrorCode code, String message, Throwable t) {
        super(ServiceCode.COMMON.getCode(), code.getCode(), code.getMessageFormat(), message, t);
    }
}
